﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using CMS.Model;
namespace CMS.Data.Interface.Service
{
    public interface IUserService : IUserStore<User>, IUserPasswordStore<User>, IUserEmailStore<User>
    {
        Task<User> FindByWXOpneId(string openid, CancellationToken cancellationToken = default);
        Task<int> UpdateOrganizationIdAsync(string userId, string orgId);
        Task<Tuple<List<Worker>, int>> GetWorkers(int pageSize, int pageIndex, string strWhere);
        Task<Tuple<List<UserView>, int>> GetUsers(int pageSize, int pageIndex, string strWhere);
        Task<DataSata> DataSata();
    }
}
